############# ########### ####### ##### ### ##
#
# Copyright (C) 2010 The Hursk Group, LLC
#
# This program is free software: you can redistribute it and/or modify 
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program (See file named COPYING).  If not, see 
# <http://www.gnu.org/licenses/>.
# 
############# ########### ####### ##### ### ##

# awk -f this_file nessus_10902.output > results

BEGIN {
	FS="|"
}

{
	# 3 == IP
	# 7 == good stuff
	splinters = split($7,seven_arr,"\\\\n")
	#print splinters
	for (x=1;x<=splinters;x++) {
		if ( seven_arr[x] ~ "(User)" ) {
			if ( seven_arr[x] !~ "possible to retriev" ) {
				split(seven_arr[x],user_arr," ")
				gsub("\\\\\\\\","\\",user_arr[2])
				print user_arr[2]
			}
		}
	}


}

END {

}
